﻿#pragma once

#include "Render/FullscreenQuad.h"
#include "Render/Shader.h"

class ColorRenderPass {
  Ref<const Shader> shader;

public:
  explicit ColorRenderPass(const Ref<const Shader>& shader);

  void SetTexture(const std::string& attachmentName, const Ref<Texture>& texture, int32_t slot);
  void Render();

  static void RenderTextureWithEffect(const Ref<Texture>& texture, const Ref<const Shader>& effect);
  static void RenderTexture(const Ref<Texture>& texture);
};
